package com.xxx.mall.converter;

import com.xxx.mall.dto.CategoryDTO;
import com.xxx.mall.model.Category;
import com.xxx.mall.vo.CategoryVO;
import org.mapstruct.Mapper;

/**
 * @author 邢晨旭
 * {@code @date} 2023/11/17
 */
@Mapper(componentModel = "spring")
public interface CategoryConverter {

    Category toCategory(CategoryDTO dto);
    CategoryVO toCategoryVO(Category category);
}
